﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>CSS - Heigth & Width</title>
    <script src="script/jquery-1.3.2.js" type="text/javascript"></script>
    <script language="javascript" type="text/javascript">
        $(document).ready(function() {
        
        });

        function Resize() {
            var lebar = $("#lebar").val();
            var tinggi = $("#tinggi").val();
            $("div").height(tinggi);
            $("div").width(lebar);
        }
    </script>
    <style type="text/css">
    div
    {
        width:200px;
        height:30px;
        border:dashed 1px #000;
    }
    </style>
</head>
<body>
    Lebar <input type="text" id="lebar" name="lebar" />,
    Tinggi <input type="text" id="tinggi" name="tinggi" />
    <input type="button" value="Resize" onclick="Resize()" />
    <div>
    </div>
</body>
</html>
